module Resoconti::RapportoGiornalieroLavoriHelper
  #def rapporto_giornaliero_lavoro_centro_costo_form_column(record, options)
    #select("record", "centro_costo", CentroCosto.find(:all).map {|i|
     #[i.name, i.id]}, {:selected => 1}, :name => "record[centro_costo][id]")
  #end
  def options_for_association_conditions(association)
    if association.name == :richiedente
      {'contatti.contatto_ref_id' => @record.partner_id}
    else
      super
    end
  end
end
